﻿namespace KrasDD.Dtos
{
    public class CrudRequest
    {
        public required CrudActionEnum action { get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        public required string type { get; set; }
        /// <summary>
        /// 主键ID，必须要有
        /// </summary>
        public required string? id { get; set; }
        /// <summary>
        ///  操作数据 
        /// </summary>
        public Dictionary<string, object> data { get; set; }
    }

    public enum CrudActionEnum
    {
        Add,
        Update,
        Delete
    }

}
